<template>
  <div class="sidebar">
    <section class="side-item">
      <h4 class="side-title">分类</h4>
      <select>
        <option value="original">原创</option>
        <option value="report">转载</option>
      </select>
      <select>
        <option value="classify">分类</option>
        <option value="saab">经验分享</option>
        <option value="opel">实用技术</option>
        <option value="audi">打胡乱说</option>
      </select>
    </section>

    <section class="side-item">
      <h4 class="side-title">标签</h4>
      <form action="" method="get" onselectstart="return false">
        <label><input name="tag" type="checkbox" value=""/>Android </label>
        <label><input name="tag" type="checkbox" value=""/>Java </label>
        <label><input name="tag" type="checkbox" value=""/>运维 </label>
        <label><input name="tag" type="checkbox" value=""/>前端 </label>
        <label><input name="tag" type="checkbox" value=""/>C++ </label>
        <label><input name="tag" type="checkbox" value=""/>PHP </label>
        <label><input name="tag" type="checkbox" value=""/>动效 </label>
        <input type="text" class="tag-text" placeholder="请添加你需要的标签">
      </form>
    </section>

  </div>
</template>

<script>
  export default {
    name: 'sidebar',
    data () {
      return {
        msg: 'Welcome to Your Vue.js App'
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .sidebar {
    float: left;
    width: calc((100% - 60px) / 3);
    height: auto;
    margin-top: 76px;
  }

  .side-item {
    width: 100%;
    height: auto;
    padding: 30px;
    background: #fff;
    margin-bottom: 20px;
    position: relative;
  }

  .side-title {
    margin-top: 0;
    border-left: 3px solid #039be5;
    padding-left: 6px;
    box-sizing: border-box;
  }

  .new-edit-article h3 {
    margin: 0;
    line-height: 36px;
  }

  .side-item select {
    background: #fff;
    width: 100px;
    height: 36px;
    line-height: 36px;
    border: 1px solid #e7e7e7;
    color: #777;
    border-radius: 4px;
    padding-left: 6px;
    outline: none;
    box-sizing: border-box;
    margin-right: 10px;
    cursor: pointer;
  }

  .side-item label {
    color: #777;
    font-size: 18px;
    padding-right: 20px;
    line-height: 36px;
    cursor: pointer;
    font-weight: normal;
    -moz-user-select: none;
  }

  .tag-text {
    width: 100%;
    height: 36px;
    line-height: 36px;
    padding-left: 10px;
    outline: none;
  }

</style>
